package com.legrand.www.module.security.controller;

import com.legrand.www.module.security.util.UserUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiah
 * @date 2018/5/7 7:46
 */
@RestController
public class TestController {
    @RequestMapping("/sec/test")
    public String test() {
        return UserUtil.getUserName();
    }
}
